<h1>Stockist / Agen</h1>
<?php if ($stockist_model !== null): ?>
    <table class="std" width="100%">
        <thead>
            <tr>
                <th>NO.</th>
                <th>KETERANGAN</th>
                <th>KOTA</th>
            </tr>
        </thead>
        <?php
        $i = 1;
        foreach ($stockist_model as $row_stockist):
            ?>
            <tr>
                <td width="10" align="right"><?php echo $i; ?>.</td>
                <td>
                    <strong><?php echo strtoupper($row_stockist->stockist_name); ?></strong><br />
                    <?php echo $row_stockist->stockist_address; ?><br />
                    <?php echo function_lib::get_area_name($row_stockist->stockist_city_id); ?>, <?php echo function_lib::get_area_name($row_stockist->stockist_state_id); ?> <?php echo $row_stockist->stockist_zipcode; ?>
                    <?php if($row_stockist->stockist_phone != '' || $row_stockist->stockist_fax != '') echo '<hr size="1" color="#ddd" />'; ?>
                    <?php if($row_stockist->stockist_phone != '') echo 'Telp. '.$row_stockist->stockist_phone; ?><?php if($row_stockist->stockist_fax != '') echo '&nbsp;&nbsp;Fax. '.$row_stockist->stockist_fax; ?>
                    <?php if($row_stockist->stockist_mobilephone != '') echo '<br />Mobile. '.$row_stockist->stockist_mobilephone; ?>
                </td>
                <td width="200"><?php echo function_lib::get_area_name($row_stockist->stockist_city_id); ?>, <?php echo function_lib::get_area_name($row_stockist->stockist_state_id); ?></td>
            </tr>
            <?php
            $i++;
        endforeach;
        ?>
    </table>
    <?php
    $this->widget('application.extensions.pagination.PaginationWidget', array(
        'CPaginationObject' => $stockist_pagination,
        'PaginationHeader' => 'Daftar Testimoni :'
    ));
    ?>
<?php endif; ?>